package com.example.filetest;

import java.util.ArrayList;
import java.util.Collections;

/*
 *
 * collections工具的使用
 * */
public class Test04 {
    public static void main(String[] args) {

        ArrayList<String> arrayList = new ArrayList<>();
        Collections.addAll(arrayList, "zhang", "chen", "wang");
        Collections.shuffle(arrayList);
        System.out.println(arrayList);


    }
}
